package com.financial.business.balance.controller;


import com.financial.business.balance.service.gy.FinancialGYBalancePayAsynService;
import com.financial.business.balance.utils.apiresult.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/callback")
public class FinancialCallBackController {

    @Autowired
    private FinancialGYBalancePayAsynService financialGYBalancePayAsynService;

    /**
     * 够样余额支付异步回调地址
     *
     * @param reqMap
     * @return
     */
    @PostMapping("/gy/pay")
    public ApiResult gyPay(@RequestParam Map<String, Object> reqMap) {

        return financialGYBalancePayAsynService.payAsyn(reqMap);
    }
}
